from rest_framework import serializers
from .models import *

class NavModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Nav
        fields = ['name', 'link', 'is_http']


class BannerModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = Banner
        fields = ['image', 'link', 'name', 'is_http']